<?php
require_once '../library/User.php';

$User = new User();
$login = null;
$msg = '';
if (isset($_POST['login'])) {
    $msg = $User->login($_POST);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Home</title>
    <link rel="stylesheet" href="../css/StyleSheet/styles.css" type="text/css"/>

    <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../lib/jquery-ui/jquery-ui-1.8.15.custom.min.js"></script>
    <script type="application/javascript" src="../js/logIn.js"></script>
</head>

<body>
<div id="container">
    <div id="header">
        <h1><span>FIND YOUR MAJOR</span></h1>

        <div id="slogan-text" class="header-slogan">your major partner</div>

    </div>
    <div id="nav">
        <ul>
            <Li><a href="./">Home</a></li>
            <Li><a href="about.php">About Us</a></li>
            <li><a href="">Majors</a></li>
            <Li><a href="">Schools</a></li>
            <Li><a href="contact.php">Contact Us</a></li>
            <Li><a href="student_info.php" id="quiz" class="quiz">Take Quiz</a></li>

        </ul>

    </div>
    <div id="content">
        <div style="font-size:12px; float:right">Already Registered?<a href="#" id="login" class="loginlink">Sign In
            here</a></div>
        <div id="page">
            <h2><?php echo $msg; ?></h2>

            <form action="" method="post">
                <table>
                    <tr></tr>
                    <tr></tr>
                    <tr>
                        <td width="100%"></td>
                    </tr>
                    <tr>
                        <td>User Name:</td>
                        <td><input name="username" type="text" id="userName"/></td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td><input name="password" type="password" id="password"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;">
                            <input name="login" type="submit" id="submit2" value="Log In"/>
                        </td>
                    </tr>
                </table>
            </form>

        </div>
        <div class="clear"></div>
    </div>

    <div id="footer">
        <p>&copy; 2012 ernydey,All rights reserved.</p>
    </div>

</div>
</body>
</html>
